<div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
			<input type="hidden" name="op" value="gift" />
			<input type="hidden" name="do" value="manage" />
			<input type="hidden" name="m" value="{php echo MODULE_NAME}" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键词</label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}" placeholder="昵称/姓名/手机号">
				</div>
			</div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">时间段</label>
                <div class="col-sm-6">
                    <div class='input-group'>
                        <div class='input-group-addon'>
                            <label class='radio-inline' style='margin-top:-7px;'>
                                <input type='radio' value='0' name='searchtime' {if empty($_GPC['searchtime'])}checked{/if}>不搜索
                            </label>
                            <label class='radio-inline'  style='margin-top:-7px;'>
                                <input type='radio' value='1' name='searchtime' {if $_GPC['searchtime']=='1'}checked{/if}>搜索
                            </label>
                        </div>
                        {php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d H:i', $starttime),'endtime'=>date('Y-m-d H:i', $endtime)),true);}
                    </div>
                </div>
            </div>
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label"></label>
				<div class="col-xs-12 col-sm-8 col-lg-9">
					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
				</div>
			</div>
		</form>
	</div>
</div>

<form action="" method="post">
	<div class='panel panel-default'>
		<div class='panel-heading'>
			{$item['title']} 获奖人数 (总数: {$total})
		</div>
		<div class='panel-body'>

			<table class="table">
				<thead>
					<tr>
						<th width="8%">ID</th>
						<th width="8%">昵称</th>
						<th width="20%">描述</th>
						<th width="8%">类型</th>
						<th width="10%">时间</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $row}
					<tr>
						<td>
							{$row['id']} 
						</td>
						<td>
							{$row['m_nickname']} 
						</td>
						<td>
							{$row['desc']} 
						</td>
						<td>
							{if $row['type'] == 0}
								<label class='label label-default'>链接</label> 
							{elseif $row['type'] == 1}
								<label class='label label-info'>二维码</label> 
							{elseif $row['type'] == 2}
								<label class='label label-primary'>图文</label> 
							{/if}
						</td>
						<td>
							{php echo date('Y-m-d',$row['createtime'])}
							<br />
							{php echo date('H-i-s',$row['createtime'])}
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
			{$pager}
		</div>

	</div>
</form>